package base.day17.api;

import java.math.BigDecimal;

public class MyDecimal {
    public static void main(String[] args) {
        BigDecimal bd1=new BigDecimal("0.1");
        BigDecimal bd2=new BigDecimal("0.2");
         BigDecimal add=bd1.add(bd2);
        System.out.println(add);

        BigDecimal subtract=bd1.subtract(bd2);
        System.out.println(subtract);

        BigDecimal multiply=bd1.multiply(bd2);
        System.out.println(multiply);

        BigDecimal divide=bd1.divide(bd2);
        System.out.println(divide);
    }
}
